<?php

/**
 * Erra_Fields_Composite - Composite field
 *
 * @package
 * @author Alexis Eric
 * @copyright Copyright (c) 2012 - Erra Prod
 * @version $1.0$
 * @access public
 */
class Erra_Fields_Composite extends Erra_Fields_Base_Field {

    function __construct($objectId) {
        parent::__construct($objectId);
    }

    /**
     * Erra_Fields_Text::editInstance() - Composite field
     *
     * @param mixed $lang
     * @return
     */
    public function editInstance(Array $extraProperties=null) {
        $res = '<span class="erra___field_description">' . $this->getDescription() . '</span>';
        return $res;
    }

    function toHtml($displayParameters=null) {
        return $this->_rawData;
    }

}